import React from 'react';
import {Link, Switch,HashRouter} from 'react-router-dom';
import routes from '../../route/routes';
import Routes from '../../route';
/**
 * 路由加载列表
 * @returns {Element}
 * @constructor
 */
export const App = function () {
    return (
        <>
            <HashRouter>
                <div>
                    <div>
                        <Link to="/a">a</Link>
                    </div>
                    <div>
                        <Link to="/b">b</Link>
                    </div>
                    <div>
                        <Link to="/c">c</Link>
                    </div>
                    <br/>
                    <div>
                        <Switch>
                            <Routes routes={routes}/>
                        </Switch>
                    </div>
                </div>
            </HashRouter>
        </>
    )

};